package pkg.calculadora;

public class Calculos {
	public double calcular(String operacion, double oper1, double oper2)
	{
		if(operacion.equalsIgnoreCase("+"))
		{
			return oper1=oper1+oper2;
		}
		else if(operacion.equalsIgnoreCase("-"))
		{
			return oper1=oper1-oper2;
		}
		else if(operacion.equalsIgnoreCase("*"))
		{
			return oper1=oper1*oper2;
		}
		else if(operacion.equalsIgnoreCase("/"))
		{
			return oper1=oper1/oper2;
		}
		return 0;
		}
}